'use strict';

const Controller = require('../core/base_controller');

class ArticleController extends Controller {
    // 获取文章列表
    async getList() {
        await this.article('getList')
    }
    // 获取文章详情
    async getDetail() {
        await this.article('getDetail')
    }
    // 更新文章点赞
    async likeArticle() {
        await this.article('likeArticle')
    }
    // 删除文章
    async delArticle() {
        await this.article('delArticle')
    }
    // 新建文章
    async addArticle(){
        await this.article("addArticle");
    }
    // 添加分类
    async addClassify() {
        await this.article('addClassify')
    }
    // 获取分类列表
    async getClassifyList() {
        await this.article('getClassifyList')
    }
    // 删除分类
    async delClassify() {
        await this.article('delClassify')
    }
    // 编辑分类
    async editClassify() {
        await this.article('editClassify')
    }
    // 添加标签
    async addTag() {
        await this.article('addTag')
    }
    // 获取标签列表
    async getTagList() {
        await this.article('getTagList')
    }
    // 删除标签
    async delTag() {
        await this.article('delTag')
    }
    // 编辑标签
    async editTag() {
        await this.article('editTag')
    }
}

module.exports = ArticleController;